package com.yilin.platform;


import com.yilin.platform.service.impl.UserService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan("com.yilin.platform.mapper")//配置扫描的映射区域
@EntityScan("com.yilin.platform.entity") //必须配置实体包，因为实体未在本项目内
@SpringBootApplication(scanBasePackages = {"com.yilin.platform"})//服务的公共配置统一放在公共区
@EnableScheduling //
public class YilinPlatformApplication {

    public static void main(String[] args) {
        SpringApplication.run(YilinPlatformApplication.class,args);
    }

}